package com.sevntu.apvs.lab2;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class SystemFun {
	public static void main(String[] args) {
		//byte[] source = { 4, 0, 1, 0, 5, 0, 0, 0, 0, 0, 5, 0, 7, 0, 0x0f, 0, 0x0e, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0 };
		//byte[] source = { 5, 0, 2, 0, 12, 0, 2, 0, 1, 0, 14, 0, 24, 0, 25, 0, 29, 0, 28, 0, 18, 0, 22, 0, 1, 0, 17, 0,
			//	13, 0, 12, 0, 29, 0, 28, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2,
			//	0, 2, 0 };
		byte[] source = { 3, 0, 3, 0, 6, 0, 4, 0, 0, 0, 1, 0, 0, 0, 4, 0, 2, 0, 6, 0, 7, 0, 3, 0, 2, 0, 4, 0, 2, 0, 2,
				0, 1, 0, 1, 0, 3, 0, 3, 0, 2, 0, 1, 0, 1, 0, 3, 0 };
		OutputStream os = null;
		try {
			//os = new FileOutputStream("sysfun.bin");
			os = new FileOutputStream("src/com/sevntu/apvs/lab2/InputFiles/sysfun3.bin");
			os.write(source);
		} catch (FileNotFoundException e) {
		} catch (IOException e) {
		} finally {
			if (os != null)
				try {
					os.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
		}
	}
}
